package org.atguigu.beanlife;

import org.atguigu.beanlife.bean.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class BeanLifeApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext ioc = SpringApplication.run(BeanLifeApplication.class, args);
        System.out.println("============容器创建完成=================");
        User bean = ioc.getBean(User.class);
        bean.setName("相瑞");
        System.out.println("运行：" + bean);
    }

}
